<header id="topbar" class="affix">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">应用内公告弹窗详情</a>
            </li>
            <li class="crumb-link">
                <a href="#op/in_app_announcement/">应用内公告弹窗</a>
            </li>
            <li class="crumb-trail">编辑</li>
        </ol>
    </div>
    <div class="pull-right">
        <a href="javascript:;" class="btn btn-primary btn-sm light fw600 ml10" id="save"><span class="fa fa-save"></span>保存</a>
    </div>
</header>
<section id="content">
    <div class="panel">
        <div class="panel-heading">
            <span class="panel-icon"><i class="fa fa-gear text-primary"></i>
            </span>
            <span class="panel-title">参数设置</span>
        </div>
        <div class="panel-body">
            <form class="form-horizontal" id="content-form">
                <div class="form-group">
                    <label for="inputTitle" class="col-md-1 control-label">标题:</label>
                    <div class="col-md-9">
                        <input type="text" id="inputTitle" class="form-control" placeholder="标题" data-field="title" required value="<%= info.title %>">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputContent" class="col-md-1 control-label">内容:</label>
                    <div class="col-md-9">
                        <textarea id="inputContent" class="form-control" rows="5" placeholder="内容..." data-field="content"><%= info.content %></textarea>
                    </div>
                </div>
                <% var moment = require('moment'); %>
                <div class="form-group">
                    <label for="inputStart" class="col-md-1 control-label">开始时间：</label>
                    <div class="col-md-4">
                        <input type="text" id="inputStart" class="form-control date-box" data-field="start_ts"
                               value=<%= moment.unix(info.start_ts).format('YYYY-MM-DD') %> required>
                    </div>
                    <label for="inputEnd" class="col-md-1 control-label">结束时间：</label>
                    <div class="col-md-4">
                        <input type="text" id="inputEnd" class="form-control date-box" data-field="end_ts"
                               value=<%= moment.unix(info.end_ts).format('YYYY-MM-DD') %> required>
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>

